package com.sl.au.service;

import java.util.List;
import java.util.Map;

import com.sl.au.entity.Grading;
import com.sl.au.entity.Part;
import com.sl.au.repository.GradingRepository;

public interface GradingService extends BaseService {
	
	GradingRepository getRepository();
	/**
	 * 转换树结构
	 * @param node
	 * @return
	 */
	List<Map<String, Object>> getNodeMap(List<Grading> node);
	
	public List<Grading> getAllNodes();
	
	/*********** 获取未绑定节点 *************/
	List<Grading> getGradingByKey(int start, int length, String key, String orderName, String dir);
	
	long getGradingByKeyCount(String key);
	
	/************ 获取子节点 ************/
	
	List<Grading> getChildrenGradingByKey(int start, int length, String id, String key, String orderName, String dir);
	
	int getChildrenGradingByKeyCount(String id, String key);
	
	/**********************************/
	/**
	 * 删除节点
	 *
	 * @param ids
	 * @return
	 */
	void deleteNodes(String[] ids);
	
	void setGradingOrder(String groupParent);
	
	String getGradingIdentify(String id);
}
